home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-12-16 | 4.4 KB | 182 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: Part.r
- // Release Version: $ ODF 3 $
- //
- // Author: Henri Lamiraux
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- #define SystemSevenOrBetter 1 // we want the extended types
- #define SystemSevenOrLater 1 // Types.r uses this variable
-
- #include "Types.r"
- #include "SysTypes.r"
- #include "CodeFragmentTypes.r"
-
- #ifndef __ODTYPES_R__
- #include "ODTypes.r"
- #endif
-
- #ifndef FWBLDDEF_H
- #include "FWBldDef.h"
- #endif
-
- #ifndef BINDING_K
- #include "Binding.k"
- #endif
-
- //-------------------------------------------------------------------------------------
- // cfrg Resource
- //-------------------------------------------------------------------------------------
-
- resource 'cfrg' (0) {
- { /* array memberArray: 2 elements */
- /* [1] */
- #ifdef FW_BUILD_MAC68K
- kMotorola,
- #else
- kPowerPC,
- #endif
- kFullLib,
- kNoVersionNum,
- kNoVersionNum,
- kDefaultStackSize,
- kNoAppSubFolder,
- kIsLib,
- kOnDiskFlat,
- kZeroOffset,
- kWholeFork,
- kODFButtonEditor,
- /* [2] */
- #ifdef FW_BUILD_MAC68K
- kMotorola,
- #else
- kPowerPC,
- #endif
- kFullLib,
- kNoVersionNum,
- kNoVersionNum,
- kDefaultStackSize,
- kNoAppSubFolder,
- kIsLib,
- kOnDiskFlat,
- kZeroOffset,
- kWholeFork,
- "ODFButton"
- }
- };
-
- //-------------------------------------------------------------------------------------
- // NMAP Resources
- //-------------------------------------------------------------------------------------
-
- resource kODNameMappings (kKindCategoryMapID) {
- kODKind,
- {
- kODFButtonKind, kODIsAnISOStringList {
- {
- kODCategoryControl
- }
- }
- }
- };
-
- resource kODNameMappings (kEditorKindMapID) {
- kODEditorKinds,
- {
- kODFButtonEditor, kODIsAnISOStringList {
- {
- kODFButtonKind
- }
- }
- }
- };
-
- resource kODNameMappings (kEditorUserStringMapID) {
- kODEditorUserString,
- {
- kODFButtonEditor, kODIsINTLText {
- smRoman, langEnglish, kODFButtonEditorUserString
- }
- }
- };
-
- resource kODNameMappings (kKindUserStringMapID) {
- kODKindUserString,
- {
- kODFButtonKind, kODIsINTLText {
- smRoman, langEnglish, "ODF Button Example"
- }
- }
- };
-
- resource kODNameMappings (kOldMacOSTypeMapID) {
- kODKindOldMacOSType,
- {
- kODFButtonKind, kODIsMacOSType {
- kODFButtonDocumentOSType
- }
- }
- };
-
- resource kODNameMappings (kEditorPlatformKinds) {
- kODEditorPlatformKind,
- {
- kODFButtonKind, kODIsPltfmTypeSpac {
- {
- kODPlatformFileType, 'sfil', smRoman, langEnglish, "Sound File", kODCategorySampledSound,
- kODPlatformDataType, 'snd ', smRoman, langEnglish, "Sound Data", kODCategorySampledSound,
- kODPlatformFileType, 'osas', smRoman, langEnglish, "Script File", kODCategoryScript,
- kODPlatformDataType, 'scpt', smRoman, langEnglish, "Script Data", kODCategoryScript
- }
- }
- }
- };
-
- //-------------------------------------------------------------------------------------
- // kind Resources
- //-------------------------------------------------------------------------------------
- // Kind resources affect the text Finder displays in the
- // "kind" column and file info dialog. This feature was
- // introduced as part of Macintosh Easy Open.
- //
- resource 'kind' (1000) {
- kODFButtonPartEditorOSType,
- 0, /* region = USA */
- {
- 'shlb', "OpenDoc™ editor"
- }
- };
-
- resource 'kind' (1001) {
- kODShellSignature,
- 0, /* region = USA */
- {
- kODFButtonDocumentOSType, kODFButtonEditorUserString" document",
- kODFButtonStationeryOSType, kODFButtonEditorUserString" stationery"
- }
- };
-
- //-------------------------------------------------------------------------------------
- // STR resources
- //-------------------------------------------------------------------------------------
- // The -16397 string will be displayed by Finder when a user
- // tries to open the editor shared library. The string should
- // give the user a little detail about the part's capabilities
- // and enough information to install the part in the correct location.
- //
- resource 'STR ' (-16397, purgeable) {
- "OpenDoc™ editor\n\nTo work properly, the “ODFButton” shared library"
- " should be placed in the Editors folder. To create a new document, "
- "open a stationery pad."
- };
-
- //-------------------------------------------------------------------------------------
- // Other Resources
- //-------------------------------------------------------------------------------------
-
- include "MacIcons.rsrc" not 'ckid';
-